var 女生 = (function () {
    function 女生(name, age) {
        this.age = age;
        this.name = name;
    }
    女生.prototype.fun1 = function (age) {
        var date = new Date();
        var year = date.getFullYear();
        var result = year - age;
        return this.name + '出生在' + result + '年';
    };
    return 女生;
}());
var type = new 女生('晶晶', 24);
console.log(type.fun1(24));
